import { createRouter,createWebHashHistory } from "vue-router"
import HomeView from '~/views/HomeView.vue'

const routes = [
    {
        path: '/',
        name: 'home',
        component: HomeView
    },
    {
      path: '/login',
      name: 'login',
        component: () => import('~/views/LoginView.vue')
    },
    {
        path: '/news',
        name: 'news',
        component: () => import('~/views/NewsView.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('~/views/RegisterView/RegisterView.vue')
    },
    {
        path: '/certification',
        name: 'certification',
        component: () => import('~/views/CertificationView/CertificationView.vue'),
    },
    {
        path: '/certification-detail',
        name: 'certification-detail',
        component: () => import('~/views/CertificationView/CertificationInfoView.vue')
    },
    {
        path: '/products',
        name: 'products',
        component: () => import('~/views/ProductsView.vue')
    },
    {
        path: '/partners',
        name: 'partners',
        component: () => import('~/views/PartnersView.vue')
    },
    {
        path: '/:catchAll(.*)',
        component: () => import('~/views/404.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
